package com.wetao.education.module_reader.contract;

import com.wetao.lib_common.base.Base2Response;
import com.wetao.lib_common.base.BasePresenter;
import com.wetao.lib_common.base.BaseResponse;
import com.wetao.lib_common.base.BaseViewImp;
import com.wetao.lib_common.bean.response.ReadPushFirstInfo;

import java.util.HashMap;

/**
 * author: zhouyh
 * created on: 2020/11/11 4:16 PM
 * description:
 */
public interface ReadPushDetailCon {

    interface View extends BaseViewImp {

        void beginReadResult(BaseResponse response);
        void beginReadFail();
        void endReadResult(BaseResponse response,boolean isExit);
        void endReadFail(boolean isExit);

        void getFirstReadResult(ReadPushFirstInfo response);
        void getFirstReadFail();


    }

    abstract class Presenter extends BasePresenter<View> {

        public abstract void beginRead(HashMap<String, String> map, boolean isDialog, boolean isCancelable);
        public abstract void endRead(HashMap<String, String> map, boolean isDialog, boolean isCancelable,boolean isExit);
        public abstract void getFirstRead(boolean isDialog, boolean isCancelable);
    }


}
